/*
package com.airport.ape.user.jobhandler;

import com.airport.ape.user.entity.dto.SysUserDto;
import com.airport.ape.user.entity.po.SysUser;
import com.airport.ape.user.mapper.SysUserMapper;
import com.alibaba.fastjson.JSON;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.apache.catalina.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

*/
/**
 * XxlJob开发示例（Bean模式）
 * <p>
 * 开发步骤：
 * 1、任务开发：在Spring Bean实例中，开发Job方法；
 * 2、注解配置：为Job方法添加注解 "@XxlJob(value="自定义jobhandler名称", init = "JobHandler初始化方法", destroy = "JobHandler销毁方法")"，注解value值对应的是调度中心新建任务的JobHandler属性的值。
 * 3、执行日志：需要通过 "XxlJobHelper.log" 打印执行日志；
 * 4、任务结果：默认任务结果为 "成功" 状态，不需要主动设置；如有诉求，比如设置任务结果为失败，可以通过 "XxlJobHelper.handleFail/handleSuccess" 自主设置任务结果；
 *
 * @author xuxueli 2019-12-11 21:52:51
 *//*

@Component
public class SampleXxlJob {
    private static Logger logger = LoggerFactory.getLogger(SampleXxlJob.class);


    @Autowired
    private SysUserMapper sysUserMapper;

    */
/**
     * 1、简单任务示例（Bean模式）
     *//*

    @XxlJob("demoSysUserJobHandler")
    public void demoJobHandler() throws Exception {
        List<SysUser> users = sysUserMapper.queryAllByLimit(new SysUserDto());
        for (SysUser user : users) {
            XxlJobHelper.log("user:" + JSON.toJSONString(user));
        }
        // default success
    }
}
*/
